package models

type User struct {
	Id         int    `orm:"column(id)" json:"id"`
	UserName   string `orm:"column(user_name)" json:"user_name"`
	UserMobile string `orm:"column(user_mobile)" json:"user_mobile"`
	CreateTime int    `orm:"column(create_time)" json:"create_time"`
	UpdateTime int    `orm:"column(update_time)" json:"update_time"`
	OpenId     string `orm:"column(open_id)" json:"open_id"`
}

// 定义User 模型绑定那个表？
func (u *User) TableName() string {
	// 返回mysql表名
	return "user"
}
